#region Copyright
/// <copyright>
/// Copyright (c) 2008 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Runtime.InteropServices;
using System.Text;

namespace OshHost
{
	public interface IOshHostSection : Osh.Configuration.IConfigurationSection
	{
		bool ShowErrors { get; set; }
		bool ShowScriptErrors { get; set; }
	}

	[ClassInterface(ClassInterfaceType.None)]
	public class OshHostSection : ConfigurationSection, IOshHostSection
	{
		public OshHostSection()
		{
		}

		[ConfigurationProperty("showErrors")]
		public bool ShowErrors
		{
			get { return (bool)base["showErrors"]; }
			set { base["showErrors"] = value; }
		}

		[ConfigurationProperty("showScriptErrors")]
		public bool ShowScriptErrors
		{
			get { return (bool)base["showScriptErrors"]; }
			set { base["showScriptErrors"] = value; }
		}

	}
}
